<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xml:lang="en" lang="en"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:t="http://myfaces.apache.org/tomahawk">
<f:view>
    <h:form id="uploadForm" enctype="multipart/form-data">
        <h:panelGrid columns="1">
            <h:panelGroup rendered="#{settingsforconfig.uploaded==false}">
                <t:inputFileUpload id="fileUpload" value="#{settingsforconfig.uploadedFile}"/>
                <h:commandButton value="Загрузить" action="#{settingsforconfig.uploadFile}">
                </h:commandButton>
            </h:panelGroup>
            <h:outputLink value="/config/legal.jsf" rendered="#{settingsforconfig.uploaded==false}">
                <h:outputText value="Вернуться."/>
            </h:outputLink>
            <h:panelGroup rendered="#{settingsforconfig.uploaded==true}">
                <h:outputLink value="/config/legal.jsf">
                    <h:outputText value="Конфигурационный файл загружен. Нажмите, что бы вернуться."/>
                </h:outputLink>
            </h:panelGroup>
        </h:panelGrid>
    </h:form>
</f:view>
</html>